#ifndef __CAPI__
#define __CAPI__
#include "All.h"
#include <windows.h>

extern bool				m_flag_isDisoplayUrsor;


char *localeToUTF8(const char *src);
char *localeToUTF8(char *src);
char* UnicodeToUtf8(const wchar_t* unicode);
std::wstring  UTF82WCS(const char* szU8);

void fillTexture(SDL_Renderer* renderer, SDL_Texture* texture, unsigned char r, unsigned char g, unsigned char b, unsigned char a);
void prepareForRendering(SDL_Renderer* renderer);

SDL_Texture* renderText(const std::string &message, const std::string &fontFile, SDL_Color color,
	int fontSize, SDL_Renderer *renderer);
SDL_Texture* renderText_in(const std::string &message, const std::string &fontFile, SDL_Color color,
	int fontSize, SDL_Renderer *renderer);

SDL_Texture* create_rectangle(int w, int h, SDL_Renderer * renderer, SDL_Color rgb);


#endif
